<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      
      <body>
      <rich:toolBar itemSeparator="line"  style=" height : 24px;">
       <rich:toolBarGroup style="padding-top:2px;padding-bottom:2px">
         #{messages['fina2.web.search']}
         <h:inputText value="" style=" height : 22px;width:250px" id="bank_code"/>
         <a4j:commandButton oncomplete="Richfaces.hideModalPanel('loading');" onclick="Richfaces.showModalPanel('loading')"  action="#{fiListSession.getBank().setCode(null)}" value="Show All" reRender="fiListTree" />
         <rich:suggestionbox minChars="1" requestDelay="0" frequency="0" selfRendered="true" nothingLabel="No codes found" id="suggestion" height="200" width="250" for="bank_code" suggestionAction="#{bankSession.getBanksByPrefix}"  var="bb">
            
            <h:column>
               <h:outputText value="#{bb.code}"/>
            </h:column>
            <h:column>
               <h:outputText value="#{bb.description}"/>
            </h:column>
            <a4j:support onsubmit="Richfaces.showModalPanel('loading')" oncomplete="Richfaces.hideModalPanel('loading')" event="onselect" action="#{fiListTreeController.initNodeCode(bb.code)}"  reRender="fiListTree,all_toolbar"/>
                
            
            
         </rich:suggestionbox>
       </rich:toolBarGroup>
      </rich:toolBar>
      
      
      </body>
</html>